import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_圣洁吊坠 {
    static id = 'AIuf';
    static 名称: string = '圣洁吊坠';
    static 描述: string = '在持续时间内受到的治疗提升100%';
    static 图标: string = 'assets\\item\\inv_misc_tolvyr.blp';
    static buffId: string = 'buff_item_shengjiediaozhui';
    static buffType: AppBuffType = {
        id: 'buff_item_shengjiediaozhui',
        name: Item_圣洁吊坠.名称,
        ubertip: Item_圣洁吊坠.描述,
        art: Item_圣洁吊坠.图标,
        attribute: {
            受到治疗增强: 1,
        },
        dur: 12,
        targetAttach: 'overhead',
        targetArt: 'Abilities\\Spells\\Orc\\SpiritLink\\SpiritLinkTarget.mdl',
    };
    static 添加技能(目标: unit) {
        UnitAddAbility(目标, Item_圣洁吊坠.id);
    }
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(目标, Item_圣洁吊坠.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_圣洁吊坠.buffType);
        se.onUnitSpellEffect(Item_圣洁吊坠.spellEffect, Item_圣洁吊坠.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_圣洁吊坠.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
